<?php
/**
 * zouhao zouhao619@gmail.com
 */
class ModelModel extends Model{
	public function get_model_list(){
		$result=zmysql_query('select id,name,car_id from '.C('DB_PREFIX').'model order by sort asc');
		$data=array();
		while($row=zmysql_fetch_array($result)){
			$data[$row['car_id']][]=$row;
		}
		return $data;
	}
}